package com.xwj.service.Interface;

import com.github.pagehelper.PageInfo;
import com.xwj.dto.CloudHouseInfoDto;
import com.xwj.dto.CreateCloudHouseInfoDto;
import com.xwj.entity.RaCloudHourse;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by xuweijie on 2018/1/19.
 */
public interface RaCloudHourseService {
    PageInfo<RaCloudHourse> findAllCloudHouse(int pageIndex, int pageSize, String cacheName);

    PageInfo<RaCloudHourse> findALLByCondition(int pageIndex, int pageSize, CloudHouseInfoDto cloudHouseInfoDto);

    int deleteOneById(int cloudId);

    int deletebatchById(List<Integer> list);

    int insertOne(RaCloudHourse raCloudHourse);

    String findOneByLocation(BigDecimal lon, BigDecimal lat);

    Integer findCloudIdByLocation(BigDecimal lon, BigDecimal lat);

    int updateOneByParam(CreateCloudHouseInfoDto cloudHouseInfoDto);
}
